package cn.item.buckle.business.dao;

import cn.item.buckle.business.pojo.*;
import org.apache.ibatis.annotations.Insert;

public interface MonitorCameraStateMapper {

	@Insert("insert into monitor_camera_state value(#{taskId},#{normalMonitorCount},#{normalCameraCount},#{abnormalMonitorCount},#{abnormalCameraCount},#{abnormalMonitorCameraInfo})")
	int insert(MonitorCameraState monitorCameraState);

	@Insert("insert into top_car value(#{taskId},#{date},#{monitorId},#{cameraId},#{car},#{actionTime},#{speed},#{roadId},#{areaId})")
		//重载的方法不行
	int insertCarInfo(MonitorFlowAction monitorFlowAction);
	@Insert("insert into top_car_count value(#{taskId},#{monitorId},#{carCount})")
	int insertCarCount(MonitorCarCount monitorCarCount);

	@Insert("insert into top_car_speed_count value(#{taskId},#{monitorId},#{high},#{medium},#{normal},#{low})")
	int insertCarSpeedCount(MonitorCarSpeedCount monitorCarSpeedCount);

	@Insert("insert into car_track value(#{taskId},#{car},#{monitorId},#{track})")
	int insertCarTrack(MonitorCarTrack MonitorCarTrack);

	@Insert("insert into car_area value(#{taskId},#{car},#{areaList})")
	int insertCarArea(MonitorCarArea monitorCarArea);
	@Insert("insert into take_car_action value(#{taskId},#{date},#{hour},#{monitorId},#{cameraId},#{car},#{actionTime},#{speed},#{roadId},#{areaId})")
	int insertTakeCarAction(TakeCarAction taskCarAction);

	@Insert("insert into monitor_car_conversion_rate value(#{taskId},#{configMonitorList},#{firstMonitorList},#{secondMonitorList},#{firstMonitorNum},#{secondMonitorNum},#{conversionRate})")
	int insertConversionRate(MonitorCarConversionRate monitorCarConversionRate);
}
